#!/usr/bin/env python
# -*- coding:utf-8 -*-


# the_str = "12,22,33,44"
#
# the_list = the_str.split(",")
# print(the_list)
# print(",".join(the_list))
#
# the_dict = {'a':'aa','b':'bb','c':'cc','d':'dd','e':'ee'}
#
# #迭代字典的key和value值
# for key,value in the_dict.items():
#     print(key)
#     print(value)
#
# #迭代字典的key值
# for key1 in the_dict.keys():
#     print(key1)
#
# #迭代字典的value值
# for value1 in the_dict.values():
#     print(value1)

def student_achie(A):
    for i in range(len(A)):
        key = i
        for j in range(i+1,len(A)):
            if A[key].split(":")[1] < A[j].split(":")[1]:
                key = j
        A[key],A[i] = A[i],A[key]
    return A
#学生姓名及学生成绩
stu = ['张三:20','李四:70','王五:88','李六:40','王吉:55.5',]

print(student_achie(stu))